/******************************************************************
 *
 * 	Programmer:		Brandon Shouse
 * 	Class:			CS362-400
 * 	Assignment:		Assignment 3
 *
 * 	Description: Unit Test for the getcost() function function
 *
 *****************************************************************/

#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main() 
{
	struct gameState state;
	int numPlayer = 2;
	int p, r, i, test;
	int seed = 1000;
	int k[10] = {adventurer, council_room, feast, gardens, mine, 
		remodel, smithy, village, baron, great_hall};

	memset(&state, 23, sizeof(struct gameState));
	r = initializeGame(numPlayer, k, seed, &state);
	
	printf("Testting getCost()...\n");
	p = getCost(smithy);
	assert (p == 4);
	printf("\tsmithy card getCost: Passed\n");

	test = getCost(baron);
	assert (test == 4);
	printf("\tbaron card getCost: Passed\n");

	p = getCost(village);
	assert (p == 3);
	printf("\tvillage card getCost: Passed\n");

	//Check for a card that does not exist/deafult case
	test = getCost(500);
	assert (test == -1);
	printf("\tTest for card does not exits/default: Passed\n");

	printf("getCost() passed all tests...\n");

	return 0;
}
